package org.example.contronller;


import lombok.RequiredArgsConstructor;
import org.example.pojo.Result;
import org.example.pojo.vo.StudentInfoOv;
import org.example.service.PeopleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController//表示交给Spring管理哦
@RequestMapping("/talent")//配置映射路径
@RequiredArgsConstructor
public class PeopleController {

    @Autowired
    private PeopleService peopleService;

    @PostMapping("/query")
    public Result query(@RequestBody StudentInfoOv param) {
        return Result.success("查询成功",peopleService.queryTalent(param).getData());
    }
}
